# -*- coding: utf-8 -*-

"""
@Datetime: 2019/5/21
@Author: Zhang Yafei
函数的嵌套调用应用：求三个数的平均值
"""


def sum_abc(num1, num2, num3):
    sum = num1 + num2 + num3
    return sum


def average_abc(a1, b1, c1):
    result = sum_abc(a1, b1, c1)
    result = result / 3  # result/=3
    print(f"平均值是:{result}")


# 1.获取三个数值
a = int(input("请输入第一个数字: "))
b = int(input("请输入第二个数字: "))
c = int(input("请输入第三个数字: "))

average_abc(a, b, c)